import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('@/views/home.vue'),
      children: [
        {
          path: '/welcome',
          name: 'welcome',
          component: () => import('@/components/welcome.vue'),
        },
        {
          path: '/zhuZhuang',
          name: 'zhuZhuang',
          component: () => import('@/views/charts/zhuZhuang.vue'),
        },
        {
          path: '/zheXian',
          name: 'zheXian',
          component: () => import('@/views/charts/zheXian.vue'),
        },
        {
          path: '/ChinaMap',
          name: 'ChinaMap',
          component: () => import('@/views/charts/ChinaMap.vue'),
        },
      ],
    },
  ],
})

export default router
